# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Thomas Dziedzic <gostrc at gmail>
# Contributor: Juergen Hoetzel <juergen@archlinux.org>
# Contributor: Tobias Kieslich <tobias@justdreams.de>

pkgname=gts
pkgver=0.7.6.121130
_snap=gts-snapshot-121130
pkgrel=2
pkgdesc='Provides useful functions to deal with 3D surfaces meshed with interconnected triangles'
url='http://gts.sourceforge.net/'
license=('LGPL')
arch=('x86_64')
depends=('glib2' 'netpbm')
#source=("https://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
source=("http://gts.sourceforge.net/tarballs/${_snap}.tar.gz")
sha256sums=('c23f72ab74bbf65599f8c0b599d6336fabe1ec2a09c19b70544eeefdc069b73b')

build() {
#	cd "${srcdir}/${pkgname}-${pkgver}"
	cd "${srcdir}/${_snap}"
	./configure --prefix=/usr
	make
}

package() {
#	cd "${srcdir}/${pkgname}-${pkgver}"
	cd "${srcdir}/${_snap}"
	make DESTDIR="${pkgdir}" install
}
